package com.jinyu.admin.service.impl;

import com.jinyu.dao.mapper.TestMapper;
import com.jinyu.admin.service.TestService;
import com.jinyu.dao.entity.TestEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: yangli
 * @Despriction:
 * @Package: com.jinyu.admin.service.impl
 * @Date:Created in 2022/5/2 0:02
 * @Modify By:
 */
@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper testMapper;

    @Override
    public int add(TestEntity testEntity) {

        return testMapper.add(testEntity);
    }

    @Override
    public TestEntity getTestEntityByOne(long id) {
        return testMapper.getTestEntityByOne(id);
    }
}
